import request from '@/router/axios';

//获取客户统计基本信息
export function customerBasicInfo(deptId) {
    return request({
        url: `/cp/statics/getStaticsData/${deptId}`,
        method: 'get'
    })
}

export function getCustomerList(obj) {
    return request({
        url: `/cp/statics/getStaticsDataPage/${obj.deptId}`,
        method: 'get',
        params: obj
    })
}

//导出Excel
export function fetchExcel(obj) {
    return request({
        url: '/cp/statics/excel',
        method: 'post',
        data: obj,
        responseType: "blob"
    })
}
//客户统计趋势图
export function tendencyData(query) {
    return request({
        url: '/cp/statics/tendency',
        method: 'get',
        params: query
    })
}
//按日期展示列表
export function showDate(query) {
    return request({
        url: '/cp/statics/page',
        method: 'get',
        params: query
    })
}